home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Utilities / uae-0.4 / Source Code / include / options.h < prev    next >
Text File  |  1996-02-13  |  2KB  |  104 lines

  1.  /* 
  2.   * UAE - The Un*x Amiga Emulator
  3.   * 
  4.   * Run-time configuration options
  5.   * 
  6.   * (c) 1995 Bernd Schmidt, Ed Hanway
  7.   */
  8.  
  9. typedef enum { KBD_LANG_US, KBD_LANG_DE } KbdLang;
  10.  
  11. extern int framerate;
  12. extern bool produce_sound;
  13. extern bool dont_want_aspect;
  14. extern bool use_fast_draw;
  15. extern bool use_debugger;
  16. extern bool use_slow_mem;
  17. extern bool automount_uaedev;
  18. extern KbdLang keyboard_lang;
  19.  
  20. #undef DEFAULT_NO_ASPECT
  21. #ifdef DEFAULT_WANT_ASPECT
  22. #define DEFAULT_NO_ASPECT false
  23. #else
  24. #define DEFAULT_NO_ASPECT true
  25. #endif
  26.  
  27. #undef DEFAULT_KBD_LANG
  28. #ifdef DEFAULT_KBD_LANG_DE
  29. #define DEFAULT_KBD_LANG KBD_LANG_DE
  30. #else
  31. #define DEFAULT_KBD_LANG KBD_LANG_US
  32. #endif
  33.  
  34. #ifndef DEFAULT_FRAMERATE
  35. #define DEFAULT_FRAMERATE 5
  36. #endif
  37.  
  38. #undef HAVE_JOYSTICK
  39. #ifdef LINUX_JOYSTICK
  40. #define HAVE_JOYSTICK
  41. #endif
  42.  
  43. #ifdef __mac__
  44. #define __inline__ inline
  45. #else
  46. #ifndef __GNUC__
  47. #ifdef __cplusplus
  48. #define __inline__ inline
  49. #else
  50. #define __inline__
  51. #endif
  52. #endif
  53. #endif
  54.  
  55. #ifndef __unix
  56. extern void parse_cmdline(int argc, char **argv);
  57. #endif
  58.  
  59. /* Try to figure out whether we can __inline__ DrawPixel() */
  60.  
  61. #undef INLINE_DRAWPIXEL8
  62. #undef INLINE_DRAWPIXEL16
  63. #undef INLINE_DRAWPIXEL
  64.  
  65. #ifdef LINUX_SVGALIB
  66.  
  67. #define INLINE_DRAWPIXEL
  68.  
  69. #ifdef SVGALIB_8BIT_SCREEN
  70. #define INLINE_DRAWPIXEL8
  71. #else
  72.  
  73. #ifdef SVGALIB_16BIT_SCREEN
  74. #define INLINE_DRAWPIXEL16
  75. #else
  76. #error You need to define either SVGALIB_8BIT_SCREEN or SVGALIB_16BIT_SCREEN.
  77. #endif
  78.  
  79. #endif
  80.  
  81. #else /* not LINUX_SVGALIB */
  82.  
  83. #ifdef X_8BIT_SCREEN
  84. #define INLINE_DRAWPIXEL8
  85. #define INLINE_DRAWPIXEL
  86. #else
  87. #ifdef X_16BIT_SCREEN
  88. #define INLINE_DRAWPIXEL16
  89. #define INLINE_DRAWPIXEL
  90. #endif
  91. #endif
  92.  
  93. #endif /* not LINUX_SVGALIB */
  94.  
  95. #ifdef __mac__
  96. /* Apparently, no memcpy :-/ */
  97. /*
  98. static __inline__ void *memcpy(void *to, void *from, int size)
  99. {
  100.     BlockMove(from, to, size);
  101. }
  102. */
  103. #endif
  104.